<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>所有该工作包附件</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="/sbm/css/table.css" rel="stylesheet" type="text/css" />

</head>

<body>
	<table width="60%" id="mytab" border="0" class="t1" align="center">
		<tr>
			<td align="center"><span class="errorAndmes"><s:actionerror
						cssStyle="font-family: Arial,Helvetica,sans-serif" /> </span>
			</td>
		</tr>
	</table>
	<table width="60%" id="mytab" border="1" class="t1" align="center">
		<tr>
			<th width="10%">附件编号</th>
			<th width="20%">附件名称</th>
			<th width="15%">附件上传时间</th>
			<th width="15%">操作</th>
		</tr>
		<s:iterator value="attachmentlist" id="attachment">
			<tr>
				<td><s:property value="#attachment.attid" /> <s:hidden
						name="attachment.wpid" value="#attachment.wpid" /></td>
				<td><s:property value="#attachment.title" /></td>
				<td><s:property value="#attachment.date" /></td>
				<td><a
					href="<s:url action="downAction">
			<s:param name="attachment.title" value="#attachment.title"></s:param>
			</s:url>">下载
				</a>&nbsp;&nbsp; <a
					href="<s:url action="deleteatt">
			<s:param name="attachment.attid" value="#attachment.attid"></s:param>
			</s:url>"
					onclick="return confirm('确定删除？')?true:false;">删除 </a>
				</td>
			</tr>
		</s:iterator>
		<tr>
			<td colspan="4" align="right"><a href="showallwork">返回</a></td>
		</tr>
	</table>
</body>
</html>
